package com.itany.corejava.day07;

public class Bird extends Animal {

    private String color;

    public Bird(String name,int age) {
        super(name,age);
    }

    public Bird(String name, int age, String color) {
        this(name, age);
        this.color = color;
    }


    @Override
    public void move() {
        System.out.println(getName()+"在飞");
    }

    public void sing(){
        System.out.println("Bird.sing");
    }


    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
